package com.xgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xgl.pojo.Punishmentinfo;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 学生处罚信息 Mapper 接口
 * </p>
 *
 * @author 最最帅气的熊国林
 * @since 2021-05-09
 */
public interface PunishmentinfoMapper extends BaseMapper<Punishmentinfo> {

    IPage<Punishmentinfo> getPunishmentinfoByPage(Page<Punishmentinfo> page, Punishmentinfo punishmentinfo, LocalDate[] beginDateScope);

    List<Punishmentinfo> getPunishmentinfo(Integer id);

    boolean insertHashCode(Integer id, String hashCode);

    boolean insertPreviousHash(Integer id, String hashCode);
}
